import logging

import pika


def get_RabbitMqConnection():
    credentials = pika.PlainCredentials('admin', 'cae4a0de')
    connection = pika.BlockingConnection(pika.ConnectionParameters('38.6.223.112', 5672, '/', credentials, heartbeat=0))
    return connection
def getLogging():
    logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s : %(message)s')
    return logging